﻿//验证是否为数字   
function IsDigit(cCheck) {
    return (('0' <= cCheck) && (cCheck <= '9'));
}
//验证是否为英文字母 
function IsAlpha(cCheck) {
    return ((('a' <= cCheck) && (cCheck <= 'z')) || (('A' <= cCheck) && (cCheck <= 'Z')))
}
//验证是否为空      
function IsaNull(cCheck) {
    return (cCheck != " ")
}


//验证邮箱格式
function IsEmailAddress(cCheck) {
    var email = cCheck;
    var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
    return pattern.test(email);
}

//验证金钱
function isMoney(s) {
    var regu = "^-?[0-9]+[\.]?[0-9]{0,3}$";
    var re = new RegExp(regu);
    return re.test(s);
}
